package ssx.demo.feignmysqlcurd.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import ssx.demo.feignmysqlcurd.service.impl.GetMysqlCURDFallbak;

@Component
//此处填写 springboot-mysql-curd微服务注册到eureka的名称
@FeignClient(name = "ssx-springboot-mysql-curd",fallback = GetMysqlCURDFallbak.class)
public interface GetMysqlCURD {

    @RequestMapping("/deal/{rest}.do")
    String fun(@RequestBody String  req, @PathVariable("rest") String path);
}
